fragile base classの例文
もっと例文: 1 2
- The dependency on XPCOM led to certain dynamic linking issues ( e . g . the fragile base class problem ) which had to be solved before the plugin would work correctly with different browsers.
- The "'fragile base class problem "'is a fundamental architectural problem of object-oriented programming systems where base classes ( derived classes, may cause the derived classes to malfunction.
- Like inheritance, delegation allows the sending object to modify the original behavior, but is susceptible to problems analogous to the fragile base class; while forwarding provides stronger encapsulation and avoids these problems; see composition over inheritance.
- The fragile base class problem has been blamed on open recursion ( dynamic dispatch of methods on this ), with the suggestion that invoking methods on this default to closed recursion ( static dispatch, early binding ) rather than open recursion ( dynamic dispatch, late binding ), only using open recursion when it is specifically requested; external calls ( not using this ) would be dynamically dispatched as usual.
- However, such changes had to be done very carefully, as other objects based on the same class might be expecting this " wrong " behavior : " wrong " is often dependent on the context . ( This is one form of the fragile base class problem . ) Further, in languages like C + +, where subclasses can be compiled separately from superclasses, a change to a superclass can actually break precompiled subclass methods . ( This is another form of the fragile base class problem, and also one form of the fragile binary interface problem .)